package com.dingup.mock.enums;

/**
 * Created by liuhaoyu on 16/7/15.
 */
public enum MockReportStatusEnum {
    MARKING("marking", "评分中"),
    MARKED("marked", "已评分"),
    CREATED("created", "已生成"),
    RECREATE("recreate", "重新生成");

    private final String code;
    private final String des;

    MockReportStatusEnum(String code, String des) {
        this.code = code;
        this.des = des;
    }

    public String getCode() {
        return code;
    }
    public String getDes(){
        return des;
    }
    public static Boolean contains(String name){
        for (MockReportStatusEnum e : values()){
            if (e.name().equals(name)){
                return true;
            }
        }
        return false;
    }
}
